package com.ld.security.server.admin.modules.lan.service.impl;

import com.ld.security.server.admin.modules.lan.entity.LanLangEntity;
import com.ld.security.server.admin.modules.lan.service.ILanViewService;
import com.ld.security.server.admin.modules.lan.service.ILanViewTelService;
import com.ld.security.server.admin.modules.lan.service.ILanLangService;
import com.ld.security.common.mybatis.base.service.ISuperServiceImpl;
import com.ld.security.server.admin.modules.lan.vo.LangDetailsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class LanLangServiceImpl extends ISuperServiceImpl<LanLangEntity>
        implements
        ILanLangService {

    @Autowired
    ILanViewTelService iLanDocumentTelService;

    @Autowired
    ILanViewService iLanDocumentService;


    @Override
    public int save(LanLangEntity entity) {
        /**
         * 都实现了工程拦截接口，参数自动注入的
         */
        int total = super.save(entity);
        return total;
    }

    @Override
    public LangDetailsVo getLangDetailsVo() {
        LangDetailsVo vo = new LangDetailsVo();
        this.proxyQuery(vo);
        return vo;
    }
}
